import request from './request'

export const studentApi = {
  // 获取学生信息
  getInfo() {
    return request.get('/student/info')
  },

  // 更新学生信息
  updateInfo(data) {
    return request.put('/student/info', data)
  },

  // 创建学生信息
  create(data) {
    return request.post('/student/create', data)
  },

  // 根据ID获取学生信息
  getById(id) {
    return request.get(`/student/${id}`)
  },

  // 获取所有学生信息
  getAll() {
    return request.get('/student/all')
  }
}